    <%
    require '/var/www/html/aboutyou-ruby-sdk/AboutYou-SDK/lib/aboutyou-sdk.rb'

        ay = AY.new(100, '3ed93394c2b5ebd12c104b177b928ad0')        
        session_id = "sessionId123"
        
        # Create a new criteria to define a filter for the product search.
        # A session ID is required. Each app user should have it's own session ID.
        criteria = ay.product_search_criteria(session_id)

        # Filter for products with "Bluse" in the name
        criteria.filter_by_searchword('Bluse')

        # read out a maximum of 10 products, skip the first 5 products
        criteria.set_limit(10, 5)

        # Product ID and it's name are read out every time. Additionally we want the default_image.
        criteria.select_product_fields([
            AboutYou::SDK::Criteria::ProductFields::DEFAULT_IMAGE
        ])

        # The product result will not only contain the products but also
        # some additional data regarding your product search
        productResult = ay.fetch_product_search(criteria)

        # To get the products you need to use .products
        products = productResult.products
    %>

    <h1>Product result</h1>
    <p>
        Number of products: <%= productResult.product_count%>
    </p>
    <ul>
        <% products.each do |key, product| %>
            <li>
                <h2><%= product.name %></h2>
                <img src="<%= product.default_image.url %>" alt="product image" />
            </li>
        <% end %>
    </ul>